package data;

import java.util.ArrayList;
import java.util.List;

public class Group {
	private final String id;
	private final ArrayList<Slide> slides;
	
	public Group(String id, List<? extends Slide> slides) {
		this.id = id;
		this.slides = new ArrayList<Slide>(slides);
	}
	
	public Group(String id) {
		this.id = id;
		this.slides = new ArrayList<Slide>();
	}
	
	public String getId() {
		return id;
	}
	
	public List<Slide> getSlides() {
		return slides;
	}
	
	public void addSlide(Slide slide) {
		slides.add(slide);
	}
	
	@Override
	public String toString() {
		return "Group " + id;
	}
}
